package lagou.MapTest.CollectionTest;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class ListTest {
    public static void main(String[] args) {
        List l1 = new ArrayList();//无参构造时，并没有申请内存空间
        l1.add(1);
        System.out.println("l1"+l1);
        System.out.println("------------------------");
        List link1 = new LinkedList();
        link1.add("one");
        System.out.println(link1);

    }
}
